package com.simon.system.dao;

import java.util.List;

import com.simon.system.model.UserRole;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRoleMapper {
    
	int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);
    
    int deleteByUserId(Integer userId);
    
    int deleteByRoleId(Integer roleId);
    
    List<UserRole> selectByUserId(Integer userId);
}